package com.supcon.exchangedata.pojo.entity.oracle;

import lombok.Data;

import javax.persistence.*;
import javax.persistence.Column;
import javax.persistence.Table;
import java.time.LocalDateTime;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: yangbin
 * @Date: 2022/03/17/16:13
 * @Description:
 */
@Entity
@Data
@IdClass(MonthKeys.class)
@Table(name = "STATIST_OTHER_PARAMETERS_MONTH")
public class StatistOtherParametersMonth {
    @Basic
    @Column(name = "ID")
    private Long id;
    @Id
    @Basic
    @Column(name = "OBJ_ID")
    private Long objId;
    @Id
    @Basic
    @Column(name = "TYPE")
    private Long type;

    @Id
    @Basic
    @Column(name = "MONTH_KEY")
    private String monthKey;
    @Basic
    @Column(name = "IN_AVG_VALUE")
    private Double inAvgValue;
    @Basic
    @Column(name = "IN_MAX_VALUE")
    private Double inMaxValue;
    @Basic
    @Column(name = "IN_MIN_VALUE")
    private Double inMinValue;
    @Basic
    @Column(name = "OUT_AVG_VALUE")
    private Double outAvgValue;
    @Basic
    @Column(name = "OUT_MAX_VALUE")
    private Double outMaxValue;
    @Basic
    @Column(name = "OUT_MIN_VALUE")
    private Double outMinValue;
    @Basic
    @Column(name = "OBJ_TYPE")
    private Long objType;
    @Basic
    @Column(name = "LAST_TIME")
    private LocalDateTime lastTime;

}
